[tools] Increases some of the timeouts
authorChristian Limpach <Christian.Limpach@xensource.com>
Thu, 21 Sep 2006 12:53:49 +0000 (13:53 +0100)
committerChristian Limpach <Christian.Limpach@xensource.com>
Thu, 21 Sep 2006 12:53:49 +0000 (13:53 +0100)
since e.g. stealing the hotplug lock after five seconds is completely insane.

From: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
tools/examples/locking.sh
tools/ioemu/target-i386-dm/helper2.c
tools/python/xen/xend/server/DevController.py

index 9dd215745282ff67e2ab8ae80ab9b3ea41454467..6ff58e7e6caa8f51557ca1487125f9e47a2e59f8 100644 (file)
@@ -21,7 +21,7 @@
 
 LOCK_SLEEPTIME=1
 LOCK_SPINNING_RETRIES=5
-LOCK_RETRIES=10
+LOCK_RETRIES=100
 LOCK_BASEDIR=/var/run/xen-hotplug
 
 
index 83fc5e8f005aa10865d4fa698b849b9fe130c1c5..4134aade4ca5f3dba28bc77e6bc7865cebcd7ab6 100644 (file)
@@ -520,8 +520,8 @@ int main_loop(void)
             }
         }
 
-        /* Wait up to 10 msec. */
-        main_loop_wait(10);
+        /* Wait up to 100 msec. */
+        main_loop_wait(100);
 
         if (env->send_event) {
             env->send_event = 0;
index e90008dbc0d245bf880d94c769c9773bfa78a964..fed36b40a1136f414531f8d0a76792cb7504c00b 100644 (file)
@@ -25,7 +25,7 @@ from xen.xend.XendLogging import log
 from xen.xend.xenstore.xstransact import xstransact, complete
 from xen.xend.xenstore.xswatch import xswatch
 
-DEVICE_CREATE_TIMEOUT = 10
+DEVICE_CREATE_TIMEOUT = 100
 HOTPLUG_STATUS_NODE = "hotplug-status"
 HOTPLUG_ERROR_NODE  = "hotplug-error"
 HOTPLUG_STATUS_ERROR = "error"